﻿using SqlSugar;

namespace Api.Shared.Model.Web.Login
{
    [SugarTable("menuitemnew")]
    public class MenuItemNew
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int tableId { get; set; }
        public int id { get; set; }
        public string authName { get; set; }

        [SugarColumn(IsNullable = true)]
        public string? path { get; set; }

        //[Navigate(NavigateType.OneToMany, nameof(parentMenuItemId), nameof(id))]

        [SugarColumn(IsIgnore = true)]
        public List<MenuItemNew>? children { get; set; }

        [SugarColumn(IsNullable = true)]
        public int? order { get; set; }

        [SugarColumn(IsNullable = true)]
        public string? parentMenuItemId { get; set; }

        [SugarColumn(IsNullable = true)]
        public int? level { get; set; }
    }
}
